<template>
    <el-button
            type="primary"
            v-bind="$attrs"
            v-on="$listeners"
            v-if="hasPermissions(handle)"
    ><slot></slot></el-button
    >
</template>
<script>
    //比NormalButton多一个type="primary",因为直接通过参数传type="primary"给NormalButton,dialog会自动重新加载，所地需要重新写一个
    export default {
        name:"PrimaryButton",
        props:["handle"],
        data() {
            return {
            };
        },
        created() {
        },
        methods: {}
    };
</script>
